dodge a bullet

Translations
l'échapper belle
Definitions
To narrowly avoid a difficult, dangerous, or undesirable situation.